package club.hicode.daydayup.netty.demo.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;

import java.util.List;

/**
 * 最后处理的Handler
 *
 * @author Liu Chunfu
 * @date 2018-06-20 下午5:19
 **/
public class LastHandler extends MessageToMessageEncoder<String> {
    @Override
    protected void encode(ChannelHandlerContext ctx, String msg, List<Object> out) throws Exception {
        out.add(msg + "lcf");
    }
}
